﻿@model ZhongheCms.Models.JobinfoPageModel
@{
	
    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    string jobstate = "";
    var fp =Model.JobInfos.CurrentPage - 1;

    var np = Model.JobInfos.CurrentPage + 1;
    int j = 0;
    string colorname = "";
}
@section head
{
   
    <style type="text/css">
<!--

.ling {
	font-family: 微软雅黑;
	font-size: 14px;
	line-height: 20px;
	color: #323848;
	text-decoration: none;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
.name {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 18px;
	font-weight: bold;
	color: #5D5D5D;
	text-decoration: none;
}
.leftxiu {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 18px;
	color: #3081B9;
	text-decoration: none;
}
.leftmenu {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #5D5D5D;
	text-decoration: none;
}
.huiyuan {
	font-family: 微软雅黑;
	font-size: 14px;
	line-height: 20px;
	font-weight: bold;
	color: #FEA700;
	text-decoration: none;
}
.huiyuan2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 22px;
	color: #5D5D5D;
	text-decoration: none;
}
.shijian {
	font-family: 微软雅黑;
	font-size: 16px;
	line-height: 24px;
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
}
.tianba {
	font-family: 微软雅黑;
	font-size: 16px;
	line-height: 24px;
	font-weight: bold;
	color: #E95D05;
	text-decoration: none;
}
.jianzhi {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #FF9900;
	text-decoration: none;
}
.jianzhi2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 30px;
	color: #5D5D5D;
	text-decoration: none;
}
    /*表单*/
 div.house_search a{color:black ;display:inline-table}
            div.house_search dl dd  a{margin:10px;}
            div.house_search dl{margin-top:10px}
            div.house_search {
                margin-bottom:20px;
            }
            div.connect {
                margin-bottom:40px;
            }
            div.footer{margin-top:20px}
            div.house_search dl{margin-left:30px}
            div.house_search dd{margin-bottom:10px;border-bottom: 1px dashed #dedede;color:#ff9900;margin-top:10px}

#pages{
	margin:10px auto 0;
}
#pages a{
	color:#666;
}
.pages{
	line-height:28px;
	height:28px;
	border:1px solid #eee; 
	background:#fbfbfb;
}
.pages a, .pages  span.selected, .pages  b.selected{
	display:inline-block;
	height:28px; 
	padding:0 14px;
	border-right:1px solid #eee; 
	font-family:Tahoma; 
	font-weight:bold;
}
.pages a.selected,.pages a:hover{
	color:#f60;
}
.pages a.next,.pages a.up{
	padding:0 30px;
}
.pages span.selected,.pages b.selected{
	color:#f60;
}
.pages a.disabled{ 
	cursor: default; 
	color:#ccc
}
.pages a.disabled:hover{
	text-decoration:none
}


-->
</style>
}
   <div class="fix gWrapper">
        <div class="breakcrumb">
            <a href="/">首页</a>&nbsp;&gt;&nbsp;
            <a href="/SunJob/JobList">兼职地带</a>
        </div>

        @*<div class="advImgBox mb15">
           
           广告位预留<a href="" target="_blank"><img src="img/cfd041571150638dc11aeda9264d9a6d.jpg" border="0" width="1200" height="90" alt=""></a>
       </div>*@

      
            
            <div class="house_search" style="border:1px solid #FFCC97;">
                
               
                <dl><dd>工作岗位：<a href="/SunJob/JobList/0?p2=@ViewBag.p2&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@ViewBag.p5" >不限</a>
                    @foreach (var item in Model.BaseInfos.Where(x => x.FunctionId == 59).OrderBy(x => x.TypeNo))
                    {
                         <a href="/SunJob/JobList/0?p1=@item.Id&p2=@ViewBag.p2&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@ViewBag.p5">@item.MasterType</a>
                    }
                   </dd></dl>
                <dl><dd>工作类型：<a href="/SunJob/JobList/0?p1=@ViewBag.p1&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@ViewBag.p5" > 不限</a>
                      @foreach (var item in Model.BaseInfos.Where(x => x.FunctionId == 60).OrderBy(x => x.TypeNo))
                    {
                         <a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@item.Id&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@ViewBag.p5">@item.MasterType</a>
                    }
                    </dd></dl>
                <dl><dd>工资结算：<a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p2&p4=@ViewBag.p4&p5=@ViewBag.p5" >不限</a>
                      @foreach (var item in Model.BaseInfos.Where(x => x.FunctionId == 66).OrderBy(x => x.TypeNo))
                    {
                         <a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p2&p3=@item.Id&p4=@ViewBag.p4&p5=@ViewBag.p5">@item.MasterType</a>
                    }
                    </dd></dl>
                <dl><dd>性别要求：<a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p2&p3=@ViewBag.p3&p5=@ViewBag.p5" >不限</a>
                      @foreach (var item in Model.BaseInfos.Where(x => x.FunctionId == 67).OrderBy(x => x.TypeNo))
                    {
                         <a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p2&p3=@ViewBag.p3&p4=@item.Id&p5=@ViewBag.p5">@item.MasterType</a>
                    }
                    </dd></dl>
                <dl><dd>
                       身高要求：<a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p2&p3=@ViewBag.p3&p4=@ViewBag.p4" >不限</a>
                      @foreach (var item in Model.BaseInfos.Where(x => x.FunctionId == 68).OrderBy(x => x.TypeNo))
                    {
                         <a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p2&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@item.Id">@item.MasterType</a>
                    }
                    </dd></dl>
              
            </div>
       <div id="content">

             <table width="1168" border="0" cellpadding="0" cellspacing="0">
                 <tr align="center" valign="middle" class="shijian" background="/assets/sunjob/images/baochebg.jpg">
                       <td  width="166">招聘单位</td>
                            <td width="100">发布日期</td>
                     <td width="100" height="44">类型</td>
                     <td width="190" height="44">工作岗位</td>
                     <td width="126" height="44">性别</td>
                     <td width="86" height="44">面试</td>
                     <td width="100" height="44">工作日期</td>
                     <td width="100" height="44">薪资待遇</td>
                     <td width="100" height="44">已报/名额</td>
                     <td width="100" height="44">状态</td>
                 </tr>
                 
                   @foreach (var item in Model.JobInfos.Items)
                   {
                       jobstate = "报名中";
                       if (item.JobState > 1)
                       {
                           jobstate = "已结束";
                       }
                       if (item.RegisterNum >= item.JobNum)
                       {
                           jobstate = "已结束";
                       }
                       if (j % 2 == 0)
                       {
                           colorname = "#FDE3CC";
                       }
                       else
                       {
                           colorname = "#FFFFFF";
                       }
                       <tr align="center" valign="middle" bgcolor="@colorname" class="leftmenu"  height="34">
                           <td><a href="/SunJob/JobDesc/@item.Id">@item.CusShortName</a></td>
                            <td><a href="/SunJob/JobDesc/@item.Id">@item.PubDate.ToShortDateString()</a></td>
                           <td><a href="/SunJob/JobDesc/@item.Id">@item.JobTypeName</a></td>
                           <td><a href="/SunJob/JobDesc/@item.Id">@item.JobTitle</a></td>
                           <td><a href="/SunJob/JobDesc/@item.Id">@item.GenderName</a></td>
                           <td><a href="/SunJob/JobDesc/@item.Id">@item.JobInterview</a></td>
                           <td><a href="/SunJob/JobDesc/@item.Id">@item.WorkDate</a></td>
                           <td><a href="/SunJob/JobDesc/@item.Id">@item.Salary</a></td>
                           <td><a href="/SunJob/JobDesc/@item.Id">@item.RegisterNum<span>/</span>@item.JobNum</a></td>

                           <td>
                                   @if (item.JobState > 1 || item.RegisterNum >= item.JobNum)
                                   {
                                    <span>已结束</span>   
                                   }
                                   else
                                   {
                                       <a href="/SunJob/JobDesc/@item.Id"><img src="/assets/sunjob/images/baochean.jpg" width="77" height="22" align="absmiddle" border="0" /></a>
                                   }
                             </td>
                       </tr>
                       j++;
                   }
             </table>

       </div>
        @if (Model.JobInfos.TotalPages > 1)
        {
              <div id="pages">


                

            <div class="pages">
                
                <a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p1&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@ViewBag.p5&pageIndex=1">首页</a>
                @if (Model.JobInfos.CurrentPage-1 > 0)
                {
                    <a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p1&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@ViewBag.p5&pageIndex=@fp">上一页</a>    
                }
                 @for (int i = 1; i <= Model.JobInfos.TotalPages; i++)
                 {
                     if (i == Model.JobInfos.CurrentPage)
                     {
                         <span class="selected">@i</span>
                     }
                     else
                     {
                          <a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p1&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@ViewBag.p5&pageIndex=@i">@i</a>
                     }
                 }
            
                @if (Model.JobInfos.CurrentPage + 1 <= Model.JobInfos.TotalPages)
                {
                     <a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p1&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@ViewBag.p5&pageIndex=@np">下一页</a>    
                }
                
               <a href="/SunJob/JobList/0?p1=@ViewBag.p1&p2=@ViewBag.p1&p3=@ViewBag.p3&p4=@ViewBag.p4&p5=@ViewBag.p5&pageIndex=@Model.JobInfos.TotalPages">尾页</a>
            </div>


            </div>
        }
      

        

    </div>
